import java.io.*;
import java.math.BigInteger;
import java.util.StringTokenizer;

public class Main {

	public static void main(String[] args) throws Exception 
	{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		while (in.ready())
		{		
			String s = in.readLine();
			StringTokenizer ss = new StringTokenizer(s);
			
			Double r = new Double(ss.nextToken());
			int n = new Integer(ss.nextToken());
			
			int count = 0;			
			while (Math.abs(r - Math.round(r)) > 1E-9) 
			{
				r *= 10;
				count++;
			}
			Integer rr = (int) Math.round(r);
			count *= n;
			
			BigInteger rrr = new BigInteger(rr.toString());			
						
			String temp = rrr.pow(n).toString();
			String result = "";
			int j = temp.length()-1;			
			for (int i = 0; i < count; i++, j--)
			{
				if (j < 0) result = "0" + result;
				else result = temp.charAt(j) + result;
			}
			
			result = "." + result;
			
			while (j >= 0) result = temp.charAt(j--) + result;
			
			System.out.println(result);				
		}
	}

}
